<!doctype html>
<html lang="zh-CN">

<head>
    <title>故障失效缺陷报告查询</title>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=0.3, maximum-scale=1.0, user-scalable=yes,shrink-to-fit=no">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="shortcut icon" type="image/x-ico" href="favicon.ico" />
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/all.min.css">
    <link rel="stylesheet" href="css/style.min.css">
    <link rel="stylesheet" href="layui/css/layui.css" media="all">
    <script src="layui/layui.js"></script>
    <script src="js/jquery-3.3.1.min.js"></script>
</head>

<body>
    <div class="flex-container">
        <nav class="nav top-nav">
        <div class="container">
            <div class="row">
               #include("language.html")
            </div>
        </div>
    </nav>
    <header class="masthead mb-auto">
        <div class="inner logo">
            <div class="webtitle">
                <div class="title-h3 masthead-brand">国产飞机运营伙伴当局信息系统</div>
                <div class="title-h4">Platform among CAAC MOU Partners for China-Made Aircraft</div>
            </div>
                #include("mainnav.html")
            <div class="search-form">
                #include("searchhead.html")
            </div>
        </div>
            #include("menu.html")
    </header>
        <div class="container">
            <div class="page-title">故障失效缺陷报告查询</div>
            <div class="row">
                <div class="col-3 left-bar">
                    #include("srd_menu.html")
                </div>
                <div class="col-9 right-list">
                    <h4 class="title-bar">故障失效缺陷报告查询</h4>
                    <form class="needs-validation" novalidate>
                        <input type="hidden" name = "language" value="ch">
                        <table class="table">
                            <tr>
                                <td>报告编号</td>
                                <td><input name="report_no" type="text" class="form-control" required></td>
                                <td>注册号</td>
                                <td><input name="registration_number" type="text" class="form-control" required></td>
                            </tr>
                            <tr>
                                <td>发生日期</td>
                                <td>
                                    <input name="date_occurrence" id="startTime" type="input" class="form-control" id="startdate" placeholder="" required>
                                </td>
                                <td>提交日期</td>
                                <td>
                                    <input name="date_occurrence1" id="endTime" type="input" class="form-control" id="enddate" placeholder="" required>
                                </td>
                            </tr>
                            <tr>
                                <td>运营人名称</td>
                                <td><input type="text" name="name_operator" class="form-control" required></td>
                                <td></td>
                                <td></td>
                            </tr>
                            <tr>
                                <td colspan="4" class="text-center">
                                    <button type="submit" class="btn btn-primary">查询</button>
                                </td>
                            </tr>
                        </table>
                    </form>
                    #if(USER)
                    #SecurityInformationSrdSearchList(userid=USER.id)
                    <table class="table table-striped table-responsive">
                        <thead>
                            <tr>
                                <td>报告编号</td>
                                <td>注册号</td>
                                <td>运营人名称</td>
                                <td>现象</td>
                                <td>发生地点</td>
                                <td>发生日期</td>
                                <td>提交日期</td>
                            </tr>
                        </thead>
                        <tbody>
                            #for(entity : SecurityInformationSrdSearchList.list)
                            <tr>
                                <td>#(entity.report_no ??)</td>
                                <td>#(entity.registration_number ??)</td>
                                <td>#(entity.name_operator ??)</td>
                                <td>#(entity.PHENOMENON ??)</td>
                                <td>发生地点</td>
                                <td>#date(entity.date_occurrence,'yyyy-MM-dd' ??)</td>
                                <td>#date(entity.date_occurrence,'yyyy-MM-dd' ??)</td>
                            </tr>
                            
                            #end
                        </tbody>
                    </table>
                    
                    #SecurityInformationSrdSearchPaginate()
                    <nav aria-label="Page navigation example" class="mt-4">
                        <ul class="pagination justify-content-center ">
                            #for(page : pages)
                            <li class="page-item #(page.style ??)">
                                <a class="page-link" href="#(page.url ??)?language=ch">
                                    #(page.text ??)
                                </a>
                            </li>
                            #end
                        </ul>
                    </nav>
                    #end
                    
                    #end
                    #end
                </div>
            </div>
        </div>
    </div>
    #include("bottom.html")
    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="js/popper.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script>
    layui.use('laydate', function(){
      var laydate = layui.laydate;
      
      //执行一个laydate实例
      laydate.render({
        elem: '#startTime' //指定元素
      });
      //执行一个laydate实例
      laydate.render({
        elem: '#endTime' //指定元素
      });
    });
    </script>
</body>

</html>